import { axios } from '@/util'

const urls = {
    permission: `permission`,
}

export const getPermissions = async (role?: string): Promise<Response | undefined> => {
    const params = role == undefined ? {} : { role: role }
    return await axios.get(urls.permission, { params: params });
}
